home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / language / dino / dino_bot.1 / install next >
Encoding:
Text File  |  1991-03-10  |  1.2 KB  |  53 lines

  1. #!/bin/csh
  2. # Copyright, 1990, Regents of the University of Colorado
  3. #
  4. #  This csh script is used to install or update DINO.  It simply
  5. #  checks to ensure that it is invoked on a sun and that there is
  6. #  a binary for the program "cinstall" and then calls that program.
  7. #
  8.  
  9. if (-e /usr/bin/arch) then
  10.     set Mytemp=`/usr/bin/arch`
  11. else
  12.     echo ""
  13.     echo "     DINO installer aparently not invoked on a sun."
  14.     echo "             (/usr/bin/arch not found)"
  15.     echo ""
  16.     exit 1
  17. endif
  18.  
  19. if ($Mytemp != "sun3" && $Mytemp != "sun4") then
  20.     echo ""
  21.     echo "     DINO installer aparently not invoked on a sun."
  22.     echo "           (/usr/bin/arch returned $Mytemp)"
  23.     echo ""
  24.     exit 1
  25. endif
  26.  
  27. if (! -e bin/$Mytemp/cinstall) then
  28.     if (-e source/install/cinstall.c) then
  29.         echo ""
  30.         echo "     Please wait for a few seconds, compiling cinstall . . ."
  31.         echo ""
  32.         if (! -d bin) then
  33.             mkdir bin
  34.         endif
  35.          if (! -d bin/$Mytemp) then
  36.             mkdir bin/$Mytemp
  37.         endif
  38.        cc -o bin/$Mytemp/cinstall source/install/cinstall.c
  39.     else
  40.         echo ""
  41.         echo "     DINO installer unable to find source code for"
  42.         echo "        cinstall (no source/install/cinstall.c)"
  43.         echo ""
  44.         exit 1
  45.     endif
  46. endif
  47.  
  48. bin/$Mytemp/cinstall
  49.  
  50.  
  51.  
  52.  
  53.